package com.learn.lombok.model;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import java.util.Date;

@Slf4j
@Data
public class User {

    private Integer userId;
    private String username;
    private Date birthday;

    public static void main(String[] args) {
        User user = new User();
        user.setUserId(1);
        user.setUsername("hujunjie");
        user.setBirthday(new Date());
        System.out.println(user);
        log.info(user.toString());
    }
}
